package engine.newUi
{
	import engine.data.ResPath;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	public class GetMagicCoinUI extends BaseUI
	{
		public var infoText		:NxText;
		public var enterBtn		:NxButton;
		private var _myLogic		:GetMagicCoinLogic;
		private static var _self	:GetMagicCoinUI;
		public function GetMagicCoinUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():GetMagicCoinUI
		{
			if(_self == null)
			{
				_self	=	new GetMagicCoinUI();
			}
			return _self;
		}
		
		override public function Init():void
		{
			_myLogic	=	GetMagicCoinLogic.getInstance();
			GetMagicCoinLogic.getInstance().init();
		}
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
		}
	}
}